package com.example.service;

import com.example.entity.Cases;
import org.springframework.stereotype.Service;

import java.util.Map;

@Service
public interface CasesService {
    Map<String, Object> getCasesByPage(Integer pageNum, Integer pageSize);

    Map<String, Object> searchCases(Integer pageNum, Integer pageSize, String titlePart, String author);

    Cases getCaseById(Integer id);
}